import { Component, OnInit } from '@angular/core';
import {PrepService} from "../../myService/test.component";

@Component({
  selector: 'form-basic',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.css']
})

export class TurnComponent{
  //定义参来接收来自PrepService服务的profileInfo属性的值
  requestPrep = [];
  //构造器注入PrepService服务
  constructor(private ps:PrepService){
    //把PrepService的profileInfo属性的值赋值给requestPrep实现组件的之间的传值
    this.requestPrep=ps.profileInfo;
  }
}
